Answered on : 2024-01-24
The error message "failed to create shim task: OCI runtime create failed" often occurs when there are compatibility issues or misconfigurations with Docker and NVIDIA drivers. Here are steps to resolve it:
1. Update NVIDIA Drivers:
- Make sure you have the latest NVIDIA drivers installed on your system. You can use `sudo apt install nvidia-driver` followed by a reboot [1][2].
2. Update Docker:
- Ensure Docker is up to date. You can use `sudo apt-get update` followed by `sudo apt-get upgrade docker.io` [9].
3. Reinstall nvidia-docker2:
- After updating drivers and Docker, reinstall nvidia-docker2 with `sudo apt-get install -y nvidia-docker2` [1].
4. Reboot:
- Reboot your system to ensure all changes take effect [1][2].
These steps should resolve the "failed to create shim task" error and allow you to use nvidia-docker2 successfully.